package com.lzy.concertticket.controller;

import com.lzy.concertticket.model.R;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;
@Slf4j
@RestController
public class TestController {

    @PostMapping("/test")
    public R test(@RequestBody Map<String, Object>  requestBody) {
        log.info("请求体：{}", requestBody);
        return R.success("请求成功");
    }
}
